/*
 * Copyright (c) 2017. 深圳一七科技. All rights reserved.
 */

package com.yiqi.liebang.feature.home.contract;

import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.liebang.entity.bo.CouponBo;
import com.yiqi.liebang.entity.bo.PageBo;
import com.yiqi.liebang.entity.bo.QuestionBo;
import com.yiqi.liebang.entity.bo.SearchBo;
import com.yiqi.liebang.entity.bo.TopicBo;
import com.yiqi.liebang.entity.bo.TopicListBo;

import java.util.List;

import io.reactivex.Observable;

/**
 * LIJUWEN
 *
 * @email yiyayiyayaoljw@gmail.com
 * @date 2018/7/11 9:06
 */
public interface TopicContract {

    interface Model {


        Observable<List<TopicBo>> getTopicList(TopicListBo workBo);

        Observable<List<TopicBo>> searchTopic(SearchBo searchBo);

    }

    interface View extends BaseView {


        void showTopicListSuccess(List<TopicBo> workBoPageData);

        void showTopicListError(String error);

        void showTopicListMoreSuccess(List<TopicBo> msg);

        void showTopicListMoreError(String msg);

        void showTopicListEmpty();
    }


    interface Presenter extends BasePresenter {

        void getTopicList(
                String classifyId,
                String serviceType,
                String classify2Id,
                String IntelligentType,
                int pageIndex,
                int pageSize
        );
        void getTopicListMore(
                String classifyId,
                String serviceType,
                String classify2Id,
                String IntelligentType,
                int pageIndex,
                int pageSize
        );
        void   searchTopic(String content ,int pageIndex,int pageZize);

        void   searchMore(String content ,int pageIndex,int pageZize);


    }
}
